﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="bl_default" %>

<%@ MasterType VirtualPath="~/Site.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="content" class="narrowcolumn">
        <table width="100%" border="0">
            <tr>
                <td>
                    გადადი სხვა გვერდებზე
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblCurrentPage" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:LinkButton ID="cmdPrev" Text=" << prev" OnClick="prevClick" runat="server"></asp:LinkButton>
                    &nbsp;&nbsp;&nbsp;articles&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="cmdNext" Text="next >> " OnClick="nextClick" runat="server"></asp:LinkButton>
                </td>
            </tr>
        </table>
        <asp:Repeater ID="Posts" runat="server">
            <ItemTemplate>
                <div class="date">
                    <div class="date_month">
                        <%# Eval("CreateDate", "{0:MMM}")%></div>
                    <div class="date_day">
                        <%# Eval("CreateDate", "{0:dd}")%></div>
                </div>
                <div id="post-<%# Eval("ArticleID")%>" class="post">
                    <h2>
                        <a title="Permanent Link to Disabled comments…" rel="bookmark" href="<%=Master.Root %>article.aspx?title=<%#Eval("Title") %>&id=<%#Eval("ArticleID") %>">
                            <%# Eval("Title")%></a>
                    </h2>
                    <small>Posted in
                        <%# SetTagsHtml(Eval("Tags"))%>by <b>ton</b> </small>
                    <div class="entry">
                        <%# Eval("ArticleText")%>
                        <p>
                            -<%# Eval("Author")%>-</p>
                    </div>
                    <p class="postmetadata">
                        <img src="images/comment.png" style="margin: 0 5px 0 0;" alt="1" />
                        <span>
                            <%# ((bool?)Eval("AllowComments")) == true ? ((IEnumerable<DataBase.Comment>)Eval("Comments")).Count() + " Comments" : "Comments Off"%></span>
                    </p>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <div class="navigation">
            <div class="archive">
                <h2>
                    Archives:
                </h2>
                <a title="June 2010" href="#">June 2010</a> | <a title="February 2010" href="#">February2010</a>
                | <a title="November 2008" href="#">November2008</a> | <a title="September 2008"
                    href="#">September 2008</a> | <a title="August 2008" href="#">August 2008</a>
                | <a title="July 2008" href="#">July 2008</a> | <a title="June 2008" href="#">June 2008</a>
                | <a title="May 2008" href="#">May 2008</a> | <a title="April 2008" href="#">April 2008</a>
                | <a title="March 2008" href="#">March 2008</a> | <a title="February 2008" href="#">
                    February 2008</a> | <a title="January 2008" href="#">January 2008</a> |
            </div>
            <p>
            </p>
            <div class="alignleft">
                <a href="#">« Older Entries</a> |
            </div>
            <div class="alignright">
            </div>
            <p>
            </p>
        </div>
    </div>
    <asp:EntityDataSource ID="ArticlesDS1" runat="server" ConnectionString="name=blogEntities"
        DefaultContainerName="blogEntities" EnableFlattening="False" EntitySetName="Articles"
        EntityTypeFilter="Article" Include="Comments,Tags">
    </asp:EntityDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="Database.BlogAdapter"
        SelectMethod="GetArticles">
        <SelectParameters>
            <asp:Parameter Name="articleId" Type="Int64" />
            <asp:Parameter Name="startDate" Type="DateTime" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
